package cn.com.smart.module.system.xRepDataset.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import cn.com.smart.framework.web.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

/**
 * 数据集表 x_rep_dataset
 * 
 * @author xman
 * @date 2019-07-05
 */
@Data
@TableName("x_rep_dataset")
public class XRepDataset extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** id */
	@TableId(type=IdType.AUTO)
	private Integer id;
	/** 数据集名称 */
	private String name;
	/** sql */
	private String sqlContext;
	/** 引用数据源id */
	private Integer dsId;
	/** 状态（0启用 1停用） */
	private String state;

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("sqlContext", getSqlContext())
            .append("dsId", getDsId())
            .append("state", getState())
            .append("creater", getCreater())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
